package com.jell.purchase.persistence;

import com.jell.purchase.model.GoodsInfoDo;
import com.jell.purchase.model.Query.GoodsInfoQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GoodsInfoDao {
    /**
     * crm_goods_info
     */
    long countByQuery(GoodsInfoQuery example);

    /**
     * crm_goods_info
     */
    int deleteByQuery(GoodsInfoQuery example);

    /**
     * crm_goods_info
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * crm_goods_info
     */
    int insert(GoodsInfoDo record);

    /**
     * crm_goods_info
     */
    int insertSelective(GoodsInfoDo record);

    /**
     * crm_goods_info
     */
    List<GoodsInfoDo> selectByQuery(GoodsInfoQuery example);

    /**
     * crm_goods_info
     */
    GoodsInfoDo selectByPrimaryKey(Integer id);

    /**
     * crm_goods_info
     */
    int updateByQuerySelective(@Param("record") GoodsInfoDo record, @Param("example") GoodsInfoQuery example);

    /**
     * crm_goods_info
     */
    int updateByQuery(@Param("record") GoodsInfoDo record, @Param("example") GoodsInfoQuery example);

    /**
     * crm_goods_info
     */
    int updateByPrimaryKeySelective(GoodsInfoDo record);

    /**
     * crm_goods_info
     */
    int updateByPrimaryKey(GoodsInfoDo record);
}